package models;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import play.db.jpa.Model;


@Entity
@Table(name="leaMes") 
public class LeaMes extends Model{
	
	@ManyToOne
	public Member member;     // 会员id
	
	@Column(name = "lem_title", columnDefinition="varchar(150)")
	public String lemTitle;  // 标题
	

	@Column(name = "lem_time", columnDefinition="varchar(200)")
	public String  lemTime;    // 留言时间
	
	@Column(name = "lem_det", columnDefinition="varchar(250)")
	public String lemDet;    // 留言内容
	
	@Column(name = "state")
	public int state ; // 留言状态：0审核中 1审核通过
	
	/**留言回复字段 */
	@ManyToOne
	public models.Manager managers;  //回复人id
	
	@Column(name = "ler_time", columnDefinition="varchar(200)")
	public String lerTime;  //回复时间
	
	@Column(name="ler_det",columnDefinition="varchar(250)")
	public String lerDet;  //回复内容
	
	public String toString(){
		return lemTitle;
	}
	
}
